class Product < ActiveRecord::Base
  belongs_to :contest

  has_many :profiles, dependent: :destroy
  has_many :joined_users, through: :profiles, class_name: 'User'

  has_many :results, dependent: :destroy
  has_many :charged_users, through: :results, class_name: 'User'
end
